package com.demo.bean;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.*;
import java.io.Serializable;

@Data
@TableName("student")
public class Student implements Serializable {
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "id",example = "OL")
	private Long id;
	@ApiModelProperty(value = "学生姓名")
	private String stuName;
	@ApiModelProperty(value = "年龄",example = "0")
	private int age;
	@ApiModelProperty(value = "老师id",example = "0L")
	private Long thId;

}
